package city.spring.modules.material.repository;

import city.spring.modules.material.entity.MaterialBreakageDeliveryEntity;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 存储库：报损出库
 *
 * @author 谢金婷
 * @date 2021-01-20 10:51:40
 */
@Repository
public interface MaterialBreakageDeliveryRepository extends BaseMapper<MaterialBreakageDeliveryEntity> {
    IPage<MaterialBreakageDeliveryEntity> listPage(Page<? extends MaterialBreakageDeliveryEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends MaterialBreakageDeliveryEntity> wrapper);

    /**
     * 报损出库确认
     * @param id
     * @param entity
     */
    void confirmDelivery(String id, MaterialBreakageDeliveryEntity entity);
}